import Vue from 'vue'
import App from './App'
import uView from "uview-ui"

Vue.use(uView);


import axios from './util/request.js'
import store from './store/index.js'
import api from './util/api.js'
import utils from './util/utils.js'
import msg from './util/msg.js'
import wechat from './util/wechat.js'
import date from './util/date.js'
import {
	next
} from './util/next.js'

import {
	heights
} from './util/height.js'


Vue.prototype.$height = heights
Vue.prototype.$date = date

Vue.prototype.$wechat = wechat

Vue.prototype.$next = next
// 全局请求接口的方法
Vue.prototype.$axios = axios
// 全局api地址的方法
Vue.prototype.$api = api

//把vuex定义成全局组件
Vue.prototype.$store = store

//全局工具箱
Vue.prototype.$utils = utils

//全局提示方法
Vue.prototype.$msg = msg

import share from 'common/js/share.js'
Vue.mixin(share)

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	store,
    ...App
})
app.$mount()
